package com.beself.until;

import com.beself.entity.Habits;

import org.springframework.stereotype.Component;

import java.util.List;

/**
 * author:徐明
 * date：2019/10/23 8:29
 * description:封装工具类
 */
@Component
public class RestJsonTwo<T> {

    private Habits habit;
    private List<T> list;

    public RestJsonTwo() {
    }

    public RestJsonTwo(Habits habit, List<T> list) {
        this.habit = habit;
        this.list = list;
    }

    public Habits getHabit() {
        return habit;
    }

    public void setHabit(Habits habit) {
        this.habit = habit;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
